<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.bci.pwtz.service.CompanyMessageService" %>
<%@page import="com.bci.pwtz.mysql.model.CompanyMessage"%>
<%
	CompanyUser messageUser = (CompanyUser)session.getAttribute("user");
	String mesid = request.getParameter("id");
	CompanyMessageService companyMessageService = (CompanyMessageService)SpringUtil.getBean("companyMessageService");
	CompanyMessage companyMessage = new CompanyMessage();
	if(companyMessageService != null){
		if(messageUser != null){
			companyMessage = companyMessageService.selectCompanyMessageById(Long.parseLong(mesid));
			if(companyMessage!=null){
				CompanyMessage companyMessageNew = new CompanyMessage();
				companyMessageNew.setMessageId(Long.parseLong(mesid));
				companyMessageNew.setReadStatus(2);
				companyMessageService.update(companyMessageNew);
			}
		}
	}
%>
<%@ include file="/user/common.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-用户权限管理</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<script type="text/javascript" src="<%=basePath %>user/m/js/message.js"></script>

</head>

<script type="text/javascript">

</script>
<body bgcolor="white">
<div class="all_cover"></div>
<!-- 添加分组框_begin -->
<div class="add_group_box">
</div>
<!-- 添加分组框_end -->
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
		<!-- 右侧内容_begin -->
	<div class="pwsj_cont_right_box">
	<%if(companyUser != null){ %>
	<%if(companyMessage != null){ %>
		<!-- 详细内容_begin -->
		<div class="pwsj_right_xxnr">
			<div class="pwsj_right_xxnr_position">消息中心&gt;详细内容<a href="message.jsp">返回</a></div>
			<!-- 详细内容_title_begin -->
			<div class="xxnr_title">
				<p class="p_date"><%=companyMessage.getCreateTimeStr() %></p>
			</div>
			<!-- 详细内容_title_end -->
			<!-- 详细内容_cont_begin -->
			<div class="xxnr_cont">
			<%=companyMessage.getContent() %>
			</div>
			<!-- 详细内容_cont_end -->
		</div>	
		<!-- 详细内容_end -->
		<%} %>
		<%} %>
	</div>
	<!-- 右侧内容_end -->
		<!--main_right end-->
	<div class="clear"></div>	
	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>